import request from '@/utils/request'

// 查询二级学院信息列表
export function listColleges(query) {
  return request({
    url: '/students/colleges/list',
    method: 'get',
    params: query
  })
}

// 查询二级学院信息详细
export function getColleges(collegeId) {
  return request({
    url: '/students/colleges/' + collegeId,
    method: 'get'
  })
}

// 新增二级学院信息
export function addColleges(data) {
  return request({
    url: '/students/colleges',
    method: 'post',
    data: data
  })
}

// 修改二级学院信息
export function updateColleges(data) {
  return request({
    url: '/students/colleges',
    method: 'put',
    data: data
  })
}

// 删除二级学院信息
export function delColleges(collegeId) {
  return request({
    url: '/students/colleges/' + collegeId,
    method: 'delete'
  })
}
